github.com/gotd/td/internal/mtproto.Conn.cipher (field)

4 uses

	github.com/gotd/td/internal/mtproto (current package)
		conn.go#L65: 	cipher       Cipher
		conn.go#L127: 		cipher:       opt.Cipher,
		new_encrypted_msg.go#L63: 	if err := c.cipher.Encrypt(s.Key, d, b); err != nil {
		read.go#L54: 	msg, err := c.cipher.DecryptFromBuffer(session.Key, b)